<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
1111
<table border="1">
				<tr>
					<th style="width:267px;">姓名</th>
					<th style="width:267px;">院系</th>
					<th style="width:267px;">专业</th>
					<th style="width:267px;">操作</th>
				</tr>
				<c:choose>
					<c:when test="${not empty stupage }">
						<c:forEach items="${stupage.list}" var="stu">
							<tr>
								<td style="width:267px; text-align: center;">${stu.sName}</td>
								<td style="width:267px; text-align: center;">${stu.sDepartment}</td>
								<td style="width:267px; text-align: center;">${stu.sMajor}</td>
								<td style="width:267px; text-align: center;"><p><a href="details?id=${stu.sId}">详情</a></p><p><a href="delete?id=${stu.sId}">删除</a></p></td>
							</tr>
						</c:forEach>
					</c:when>
				</c:choose>
			</table>
			<ul>
			<c:if test="${stupage.isFirstPage ==false}">
			<li><a href="page?page=${stupage.pageNum-1}">上一页</a></li>
			</c:if>
			
			<c:forEach begin="1" end="${stupage.pages}" var="pageNum">
							   <li><a href="page?page=${pageNum}">${pageNum}</a></li>
						   </c:forEach>
			
			<c:if test="${stupage.isLastPage  ==false}">
			<li><a href="page?page=${stupage.pageNum+1}">下一页</a></li>
			</c:if>
			
			</ul>
			
			
</body>
</html>